﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Product_Select" CodeFile="Product_Select.aspx.cs" MasterPageFile="~/MasterPage.master"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <title>添加产品</title>
   
   <base target="_self" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle" colspan="6">
                    搜索选项
                </td>
            </tr>
            
      
                <tr>
                    <td class="tablefield">
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ resources:language, lbl_Manufactory%>"></asp:Literal>
                    </td>
                    <td class="style1">
                        <asp:DropDownList ID="ddlManu" runat="server" Width="130" AutoPostBack="True" OnSelectedIndexChanged="ddlManu_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td class="tablefield">
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ resources:language, lbl_Category%>"></asp:Literal>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCategroy" runat="server" Width="130" AutoPostBack="True"
                            OnSelectedIndexChanged="ddlCategroy_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td class="tablefield">
                        品牌
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlBrand" runat="server" Width="130">
                        </asp:DropDownList>
                    </td>
                </tr>
           
            <tr>
          
                    <td class="tablefield">
                    <asp:Literal ID="Literal3" runat="server" Text="<%$ resources:language, lbl_Package%>"></asp:Literal>
                </td>
                <td>
                    <asp:DropDownList ID="ddlForm" runat="server" Width="130">
                    </asp:DropDownList>
                </td>
                <td class="tablefield">
                    产品名称:
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox ID="txtProduct" runat="server"></asp:TextBox>
                </td>
                <td nowrap="nowrap" class="tablefield">
                    &nbsp;
                </td>
                <td nowrap="nowrap">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    &nbsp;
                </td>
                <td nowrap="nowrap">
                    &nbsp;
                </td>
                <td class="tablefield">
                    &nbsp;
                </td>
                <td nowrap="nowrap">
                    &nbsp;
                </td>
                <td nowrap="nowrap" colspan="2" class="buttonarea">
                    <asp:Button ID="btnQuery" runat="server" class="wsd_button2" Text="查  询" CausesValidation="false"
                        OnClick="btnQuery_Click" />
                    &nbsp;&nbsp;
                    <input type="button" class="wsd_button2" size="47" value="重  置" name="reset" onclick="clearForm('form1')" />
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle">
                    产品列表
                </td>
            </tr>
        </table>
        <table id="wsd_listtable" width="100%">
            <tr>
                <td style="width: 100%">
                    <asp:GridView Width="100%" ID="gvProductList" runat="server" AutoGenerateColumns="false"
                        EmptyDataText="没有可显示的数据." EmptyDataRowStyle-Font-Bold="true" EmptyDataRowStyle-HorizontalAlign="Center"
                        EnableEmptyContentRender="true" AllowPaging="True" PageSize="20" DataKeyNames="ID"
                        OnPageIndexChanging="gvProductList_PageIndexChanging">
                        <HeaderStyle CssClass="titlist" />
                        <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                        <Columns>
                            <asp:BoundField HeaderText="产品名称" DataField="ProductName" />
                            <asp:BoundField HeaderText="制造商" DataField="ManuName" />
                            <asp:BoundField HeaderText="品类" DataField="CategoryName" />
                            <asp:BoundField HeaderText="品牌" DataField="brandname" />
                            <asp:BoundField HeaderText="系列" DataField="formname" />
                            <asp:BoundField HeaderText="单价" DataField="piece_price" />
                          
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbxSelect" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle CssClass="evenline" />
                        <AlternatingRowStyle CssClass="oddline" />
                        <PagerSettings FirstPageText="首页" LastPageText="尾页" Mode="NumericFirstLast" PageButtonCount="20" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle">
                    <asp:Literal ID="Literal15" runat="server" Text="操作区域"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td class="buttonarea">
                    <asp:Button ID="btnSave" runat="server" class="wsd_button2" Text="确  定" OnClick="btnSave_Click" />&nbsp;&nbsp;
                </td>
            </tr>
        </table>
    </div>
</asp:Content>